<div style="text-align: center;">
 <b> <%= @user.name %></b>
  (<%= @user.email %>)

</div>


  <p style="text-align: center;">saldo: <b><%= @user.saldo %> zł </b></p>
<hr>
<h1>Doładuj konto użytkownika</h1>
<div style="margin-left: auto; margin-right: auto; width: 400px">
  <%= link_to image_tag("1zl.png"), {:action => :add_payment, :id => @user.id, :amount => 1} %>
  <%= link_to image_tag("2zl.png"), {:action => :add_payment, :id => @user.id, :amount => 2} %>
  <%= link_to image_tag("5zl.png"), {:action => :add_payment, :id => @user.id, :amount => 5} %>
  <%= link_to image_tag("10gr.png"), {:action => :add_payment, :id => @user.id, :amount => 0.1} %>
  <%= link_to image_tag("20gr.png"), {:action => :add_payment, :id => @user.id, :amount => 0.2} %>
  <%= link_to image_tag("50gr.png"), {:action => :add_payment, :id => @user.id, :amount => 0.5} %>
</div>
<div style="text-align: center;">
  <%= link_to image_tag("back.png"), {:action => :users} %>  
</div>


<h1>Historia wpłat</h1>
<div id="payments" style="margin-top: 10px">
  <%= twill_paginate @payments, :style => 'font-size: small' %>
  <%= render :partial => 'payments/payment', :collection => @payments %>
</div>
